package org.example.crypto.decrypt;

import org.example.crypto.enums.CryptoType;

import java.lang.annotation.*;

/**
 * @program: rabbitmq-study
 * @description: 自定义加密注解
 * @Version V1.0.0
 * @author: dazhi
 * @create: 2021-02-09 10:17
 **/
@Target({ElementType.TYPE,ElementType.METHOD,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented//注解将被包含再javadoc中
@Inherited
public @interface ApiDecrypt {
    //解密类型
    CryptoType value();
    //私钥
    String secretKey() default "";
}
